﻿@using VirtualPress.Infrastructure.Entities.Entity;
@using VirtualPress.Portal.Biz;
@{
    List<Book> data = CommonBiz.GetAllBook(0, 4);
}
<div class="newbooks">
    <div class="newbooks-title">
        <div class="float-left">
           <i class="icon-barcode"></i> 最新图书</div>
        <div class="float-right">
            <a href="/books/home/list" title="more"><i class="icon-align-justify"></i></a>
        </div>
    </div>
    <hr class="flline">
    @if (data != null )
    {
        foreach (var item in data)
        {
        <div class="bookitem">
            <div class="bookitem-left">
                <a href="/Books/Home/Detail/@item.Id" target="_blank">
                <img alt="@item.Name" src="@item.CoverImg" width="80px" /></a>
            </div>
            <div class="bookitem-right">
                <div class="bookitem-title">
                    <a href="/Books/Home/Detail/@item.Id" target="_blank">@item.Name</a></div>
                <div class="bookitem-author">
                    @item.Authors<br />
                    @DateTime.Now.ToString("yyyy-M-d")<br />
                    @item.ISBN
                </div>
            </div>
        </div>
        <div class="bookitem-line">
        </div>
        }
    }
</div>
